#Endless PowerShell Tetris tune
#adapted from https://gist.github.com/XeeX/6220067
#Taken from https://gist.github.com/SadProcessor/
function Play-TetrisTune(){
    [console]::beep(658, 125) 
    [console]::beep(1320, 500) 
    [console]::beep(990, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(1188, 250) 
    [console]::beep(1320, 125) 
    [console]::beep(1188, 125) 
    [console]::beep(1056, 250) 
    [console]::beep(990, 250) 
    [console]::beep(880, 500) 
    [console]::beep(880, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(1320, 500) 
    [console]::beep(1188, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(990, 750) 
    [console]::beep(1056, 250) 
    [console]::beep(1188, 500) 
    [console]::beep(1320, 500) 
    [console]::beep(1056, 500) 
    [console]::beep(880, 500) 
    [console]::beep(880, 500) 
    Start-Sleep -m 250 
    [console]::beep(1188, 500) 
    [console]::beep(1408, 250) 
    [console]::beep(1760, 500) 
    [console]::beep(1584, 250) 
    [console]::beep(1408, 250) 
    [console]::beep(1320, 750) 
    [console]::beep(1056, 250) 
    [console]::beep(1320, 500) 
    [console]::beep(1188, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(990, 500) 
    [console]::beep(990, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(1188, 500) 
    [console]::beep(1320, 500) 
    [console]::beep(1056, 500) 
    [console]::beep(880, 500) 
    [console]::beep(880, 500) 
    Start-Sleep -m 500 
    [console]::beep(1320, 500) 
    [console]::beep(990, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(1188, 250) 
    [console]::beep(1320, 125) 
    [console]::beep(1188, 125) 
    [console]::beep(1056, 250) 
    [console]::beep(990, 250) 
    [console]::beep(880, 500) 
    [console]::beep(880, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(1320, 500) 
    [console]::beep(1188, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(990, 750) 
    [console]::beep(1056, 250) 
    [console]::beep(1188, 500) 
    [console]::beep(1320, 500) 
    [console]::beep(1056, 500) 
    [console]::beep(880, 500) 
    [console]::beep(880, 500) 
    Start-Sleep -m 250
    [console]::beep(1188, 500) 
    [console]::beep(1408, 250) 
    [console]::beep(1760, 500) 
    [console]::beep(1584, 250) 
    [console]::beep(1408, 250) 
    [console]::beep(1320, 750) 
    [console]::beep(1056, 250) 
    [console]::beep(1320, 500) 
    [console]::beep(1188, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(990, 500) 
    [console]::beep(990, 250) 
    [console]::beep(1056, 250) 
    [console]::beep(1188, 500) 
    [console]::beep(1320, 500) 
    [console]::beep(1056, 500) 
    [console]::beep(880, 500) 
    [console]::beep(880, 500) 
    Start-Sleep -m 500
    [console]::beep(660, 1000) 
    [console]::beep(528, 1000) 
    [console]::beep(594, 1000) 
    [console]::beep(495, 1000) 
    [console]::beep(528, 1000) 
    [console]::beep(440, 1000) 
    [console]::beep(419, 1000) 
    [console]::beep(495, 1000) 
    [console]::beep(660, 1000) 
    [console]::beep(528, 1000) 
    [console]::beep(594, 1000) 
    [console]::beep(495, 1000) 
    [console]::beep(528, 500) 
    [console]::beep(660, 500) 
    [console]::beep(880, 1000) 
    [console]::beep(838, 2000) 
    [console]::beep(660, 1000) 
    [console]::beep(528, 1000) 
    [console]::beep(594, 1000) 
    [console]::beep(495, 1000) 
    [console]::beep(528, 1000) 
    [console]::beep(440, 1000) 
    [console]::beep(419, 1000) 
    [console]::beep(495, 1000) 
    [console]::beep(660, 1000) 
    [console]::beep(528, 1000) 
    [console]::beep(594, 1000) 
    [console]::beep(495, 1000) 
    [console]::beep(528, 500) 
    [console]::beep(660, 500) 
    [console]::beep(880, 1000) 
    [console]::beep(838, 2000) 
}
